import 'package:flutter/material.dart';
import 'model/zj_home_model.dart';
import 'widget/zj_home_list_detail_content.dart';

class ZJTabbarTwoListDetailPageScreen extends StatelessWidget {
  static const String routeName = "/twoListDetailPage";

  @override
  Widget build(BuildContext context) {
    final category = ModalRoute.of(context).settings.arguments as ZJHomePositionModel;
    backgroundColor: const Color(0xFFF3F5F7);
    return Scaffold(
      backgroundColor: const Color(0xFFF3F5F7),
      appBar: AppBar(
        backgroundColor: const Color(0xFFF3F5F7),
        elevation: 0,
        // title: Text(category.pushTitle),
        leading: MaterialButton(
          minWidth:40,
          padding: const EdgeInsetsDirectional.only(start: 0,end: 10),
          child: Image.asset('assets/images/home/icon_return.png',width: 8*1.3, height: 13*1.3),
          onPressed: () => {
            Navigator.of(context).pop('刷新')
          },
        ),
        actions: <Widget>[
          Row(
            children: [
              MaterialButton(
                minWidth:40,
                padding: const EdgeInsetsDirectional.only(start: 0,end: 0),
                child: Image.asset('assets/images/home/share.png',width: 16, height: 16),
                onPressed: () => {
                  Navigator.of(context).pop('刷新')
                },
              ),
              MaterialButton(
                minWidth:40,
                padding: const EdgeInsetsDirectional.only(start: 0,end: 10),
                child: Image.asset('assets/images/home/complaint.png',width: 18, height: 18),
                onPressed: () => {
                  Navigator.of(context).pop('刷新')
                },
              ),
            ],
          ),
        ],
      ),
      body: ZJHomeListDetailContent(category),
    );
  }
}
